<!DOCTYPE html>
<html>
<body>
<canvas id="crashtest" width="50000" height="50000" />
<script>
  document.getElementById("crashtest").mozGetAsFile("foo.png", "image/png");
  document.getElementById("crashtest").mozGetAsFile("foo.jpeg", "image/jpeg");
</script>
</body>
</html>
